namespace GemBox.Spreadsheet
{
    using System;
    using System.IO;

    internal class SupBookRecord : XLSRecord
    {
        private ushort sheetsCount;
        private static XLSDescriptor staticDescriptor = XLSDescriptors.GetByName("SUPBOOK");

        public SupBookRecord() : base(staticDescriptor)
        {
            base.InitializeBody((byte[]) null);
        }

        public SupBookRecord(int bodyLength, BinaryReader br, AbsXLSRec previousRecord, IoOperationInfo operationInfo) : base(staticDescriptor, bodyLength, br)
        {
        }

        protected override void InitializeDelayed()
        {
            base.InitializeDelayed(new object[] { this.sheetsCount });
        }

        public ushort SheetsCount
        {
            get
            {
                return this.sheetsCount;
            }
            set
            {
                this.sheetsCount = value;
            }
        }
    }
}
